/**
 * Created by LJY on 2017/3/11.
 */
import java.util.Arrays;
public class CopyArray {
    public static void main(String[] args) {
        int[] score1={88,89,90,12,34};
        int[] score2=Arrays.copyOf(score1,score1.length);
        for(int score : score2){
            System.out.printf("%3d",score);
        }
        System.out.println();
        score2[0]=100;
        for(int score : score2){
            System.out.printf("%4d",score);
        }
    }
}
